home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-21 / qwhite.zip / QRAM.TEC < prev    next >
Text File  |  1992-03-09  |  16KB  |  313 lines

  1. ID:QR QRAM
  2. Quarterdeck Technical Note #216
  3. by Michael Bolton
  4.  
  5. QRAM
  6. ====
  7.  
  8. What is QRAM?
  9. Does QRAM turn exTENded memory into exPANded memory?
  10. What do I need to run QRAM?
  11. What can QRAM do for my system?
  12.  
  13. What is QRAM?
  14. =============
  15.  
  16. QRAM is a suite of memory management utilities which add power to 80286, 8086, 
  17. and 8088 PCs and compatibles in some of the same ways that QEMM-386 adds power 
  18. to 386 PCs, allowing you to liberate more of the precious memory below 640K.
  19.  
  20.     QRAM, on machines with appropriate memory management hardware --
  21.      Chips and Technologies Shadow RAM, or EMS 4.0 hardware AND
  22.      software, creates High RAM -- RAM placed at unused addresses
  23.      between 640K and 1MB.  This allows you to load Terminate-and-Stay-
  24.      Resident programs (TSRs), device drivers, network drivers, DOS
  25.      resources (such as BUFFERS, FILES, FCBS, and drive specifiers)
  26.      and the like into High RAM -- RAM placed at unused addresses
  27.      between 640K and 1MB.
  28.  
  29.     The VIDRAM program which comes as part of the QRAM package
  30.      allows you to "steal" a portion of memory from your EGA or VGA
  31.      video card and assign that memory to DOS, further increasing the
  32.      amount of conventional memory available to you when you are running
  33.      a program that does not need EGA or VGA graphics.
  34.  
  35.     QEXT.SYS, an XMS driver, provides access to extended memory,
  36.      and to the HMA -- 64K of extra DOS memory for applications
  37.      that know how to use this specification.  
  38.  
  39.     The BUFFERS and FILES programs allow you to allocate
  40.      additional DOS buffers and file handles on the fly, after your
  41.      machine has booted  -- and to load them into High RAM.
  42.  
  43.     Other utilities for managing memory are included.
  44.  
  45.     Finally, every copy of QRAM also comes with Manifest, the
  46.      award-winning memory analysis and reporting tool.
  47.  
  48. Most people are interested in QRAM for its abilities to load small DOS 
  49. programs, drivers, and resources into High RAM.  However, the bewildering 
  50. array of memory management standards associated with the 8088 and 80286 
  51. architectures contributes to several common misconceptions about what High RAM 
  52. really is and how it is allocated. This note will describe the hardware and 
  53. software requirements for QRAM, and will explain what you can expect QRAM to 
  54. do for your system.
  55.  
  56.  
  57. Does QRAM turn exTENded memory into exPANded memory?
  58. =======================================================
  59.  
  60. No.  QRAM DOES NOT turn exTENded memory into exPANded memory.  In fact, QRAM 
  61. needs to find either an appropriate Shadow RAM chipset, or some form of EMS 
  62. 4.0 exPANded memory hardware with its own EMS 4.0 driver already present, if 
  63. QRAM is to load programs high.  (What constitutes appropriate is described 
  64. below.)  The 286 chip on its own does not have the memory management features 
  65. needed to make memory appear at addresses where there is none.  The 386 chip 
  66. has these (and other extremely sophisticated memory management) features built-
  67. in, but the 286 needs assistance from extra hardware to do this.
  68.  
  69. Several programs, (often called "LIMulators") provide the ability to store 
  70. data in exTENded memory in such a way that, to software, the exTENded memory 
  71. looks like exPANded memory.  QRAM IS NOT A PROGRAM OF THIS TYPE.
  72.  
  73. Such programs (which are widely available, and free on many bulletin board 
  74. systems) have two important disadvantages.  First, they cannot create exPANded 
  75. memory in which programs can be run, so they cannot be used to load TSRs, 
  76. device drivers, and network software outside of conventional memory; nor are 
  77. such expanded memory emulators useful to DESQview for multitasking.  Second, 
  78. in order to provide the EMS page frame, necessary for the emulation of EMS, 
  79. they actually cost 64K (for the EMS page frame), plus the overhead for their 
  80. own code, all in conventional memory -- which is an enormous penalty, 
  81. presuming that your goal is to liberate as much conventional memory as 
  82. possible.
  83.  
  84. What do I need to run QRAM?  What can QRAM do for my system?
  85. ============================================================
  86.  
  87. QRAM's features depend on several aspects of the configuration of your 
  88. machine, including its memory management hardware and software, and its video 
  89. hardware.
  90.  
  91. It is crucially important to understand that, on a 286 without memory 
  92. managment hardware, there is NO MEMORY between 640K and 1 MB -- even on 
  93. systems with one megabyte or more of memory installed.  (Machines with Shadow 
  94. RAM constitute an exception to this; Shadow RAM is described below.) The 
  95. extended memory on your system is addressed not only above 640K, but above the 
  96. 1MB line -- and is therefore outside of DOS's address space.  A typical one 
  97. megabyte machine that doesn't have Shadow RAM has MEMORY that occupies the 0-
  98. 640K address range -- and then there is ADDRESS SPACE, but no MEMORY between 
  99. 640 and 1024K.  This address space is reserved for system hardware and adapter 
  100. boards.  The rest of the one megabyte of MEMORY occupies address space between 
  101. 1024K and 1408K.   DOS cannot access memory which is beyond 1024K with the 
  102. exception of the HMA (1024-1088K).  Only the DOS kernel (in DOS version 5 or 
  103. later) or programs which have been specially written to take advantage of this 
  104. region may do so.  Extended memory is not useful to QRAM, nor is it useful to 
  105. any regular DOS program except as a place to store data.  Only DOS programs 
  106. which have been specifically written to access extended memory will be able to 
  107. take advantage of it.
  108.  
  109.  
  110. Machines with Shadow RAM 
  111. =========================
  112.  
  113. Shadow RAM is a way to increase the system's speed.  System and video BIOS 
  114. (Basic Input/Output Services) ROMs are addressed 8 bits at a time, and 
  115. therefore are typically slower than 16- or 32-bit RAM.  ROM shadowing is 
  116. accomplished by setting up a 384K region of memory somewhere on the system, 
  117. giving it addresses from 640K to 1MB, and copying the code from system and 
  118. video ROMs into this region.  So far as the processor is concerned, the ROMs 
  119. are still at their usual addresses, but since the ROM code is in faster RAM, 
  120. performance is improved. Typical systems use 32K of ROM for video, and 64K or 
  121. less of ROM for the system BIOS.  Thus, most of this 384K region of memory, 
  122. set aside for ROM shadowing, is unused.
  123.  
  124.  
  125. QRAM's LOADHI Features
  126. ======================
  127.  
  128. In order for QRAM to activate its LOADHI capabilites, it must find at least 
  129. one of the following things on your machine:
  130.  
  131. 1) The Chips & Technologies NEAT, SCAT, PEAK, LEAP, or 386 Shadow RAM
  132.    chipsets; as described above, these chipsets have the ability to make
  133.    actual memory appear at addresses between 640K and 1MB when Shadow
  134.    RAM is enabled.  Machines that are equipped with these chipsets may
  135.    display the words "NEAT", "SCAT", "PEAK" or "LEAP" at some time
  136.    during the boot process.  Note that since Shadow RAM is implemented
  137.    in hardware on these types of systems, you do not need to have any
  138.    sort of software driver installed for QRAM to take advantage of your
  139.    system's Shadow RAM.  It may be necessary for you to activate the
  140.    ShadowRAM in the CMOS setup, however; QRAM cannot do this.
  141.  
  142.  
  143. 2) An EEMS (two "E"s) or EMS 4.0 board with a software driver that
  144.    provides mappable EMS pages between 640K and 1MB in addition to the
  145.    EMS page frame.  The software driver is installed in CONFIG.SYS, and
  146.    typically has the letters "EMM" somewhere in its filename.  The EMS
  147.    driver must not only be able to provide exPANded memory; it must also
  148.    be capable of creating more than four mappable pages between 640K and
  149.    1MB, as the first four mappable pages are reserved for the EMS Page
  150.    Frame.  A very few computers come with this sort of memory management
  151.    hardware already installed.
  152.  
  153.  
  154. 3) A 286 memory management unit, such as the All ChargeCard or the SOTA
  155.    Pop Card.  Though not a complete implementation of the 386
  156.    architecture, these add-on devices provide memory management most
  157.    similar to that offered by the 386 architecture.
  158.  
  159. Note that items 2 and 3 involve some sort of add-on hardware, and that 
  160. software alone WILL NOT provide the hardware assist that the 286 or lesser 
  161. processors need for QRAM to create High RAM.
  162.  
  163. Manifest's Expanded / Pages screen will tell you if your hardware and driver 
  164. is currently providing mappable pages, as can the QTEST program described 
  165. below.  Manifest's exPANded pages screen will look something like this:
  166.  
  167. 0n00 UUUU
  168. 1n00 UUUU
  169. 2n00 UUUU
  170. 3n00 UUUU
  171. 4n00 UUUU
  172. 5n00 UUUU
  173. 6n00 UUUU
  174. 7n00 UUUU
  175. 8n00 UUUU
  176. 9n00 UUUU
  177. An00 UUUU    <-
  178. Bn00 ++UU    <-   Plus signs (+) anywhere in this
  179. Cn00 UUFF    <-   range mean that QRAM can create
  180. Dn00 FF++    <-   High RAM -- 16K for each +
  181. En00 ++++    <-
  182. Fn00 UUUU
  183.  
  184. Note that this map tells you what is being currently provided.  Your hardware 
  185. and software may be capable of creating more mappable pages; consult the 
  186. documentation for your board.  Some switch or jumper settings, or some command-
  187. line parameters on your board's device driver may be able to provide you with 
  188. more mappable pages.
  189.  
  190. If you have an EMS board that provides only four mappable pages, pages that 
  191. are reserved for the Page Frame, and designated above by the letter "F", you 
  192. may choose to disable your use of exPANded memory in exchange for the 64K of 
  193. High RAM that QRAM may be able to provide.  This will liberate more memory 
  194. below 640K, but will curtail your access to exPANded memory.
  195.  
  196. A further complication results from the fact that when IBM introduced the PC-
  197. AT, the addresses from E000-EFFF (or 896-960K in decimal) were reserved for an 
  198. expansion of the system ROM.  However, the system ROM was not expanded until 
  199. the advent of the PS/2.  Unfortunately, the address space from E000-EFFF 
  200. remained unusable for any other purpose, and to retain 100% compatibility with 
  201. IBM, almost all clone makers followed the PC-AT's example.  There were very 
  202. few manufacturers who were confident enough to break this convention, and 
  203. therefore the E000-EFFF range may not be available on your machine.  Since 
  204. many computers render the E region unusable for High RAM or EMS, many expanded 
  205. memory boards also refrain from allowing High RAM to be mapped into the E 
  206. region.  Your hardware may permit you to do this.
  207.  
  208.  
  209. VIDRAM
  210. ======
  211.  
  212. If you use a VGA or EGA display adapter, the VIDRAM program in the QRAM 
  213. package allows you to gain up to 96K of extra conventional memory, at the cost 
  214. of temporarily disabling EGA or VGA graphics. This is most useful if you are 
  215. running text-based programs (such as most popular spreadsheets, databases, and 
  216. word processors).  The trade-off here is that you give up the ability to use 
  217. graphics while VIDRAM is activated, but it can be toggled on and off with ease 
  218. from the DOS prompt.
  219.  
  220.  
  221. QEXT.SYS
  222. ========
  223.  
  224. QEXT is a driver that allows Quarterdeck's DESQview to load 64K of itself into 
  225. the first 64K of extended memory.  QEXT is also an XMS driver; that is, it 
  226. manages extended memory in accordance with the HMA and EMB aspects of the XMS 
  227. specification to programs that know how to use it.  Extended memory disk 
  228. caches and network drivers are often capable of using XMS memory, as are 
  229. Microsoft Windows 3.0. and other applications.  If you are currently using 
  230. HIMEM.SYS, using QEXT instead can help to increase the amount of conventional 
  231. memory on your machine, since QEXT can be loaded high by QRAM's LOADHI 
  232. features.  QEXT requires extended memory to be installed on your machine, and 
  233. to put it to use, you must have DESQview or applications that use the XMS 
  234. specification.
  235.  
  236.  
  237. The DOS Resource Programs
  238. =========================
  239.  
  240. In DOS versions 2 and 3, each disk buffer in CONFIG.SYS uses approximately .5K 
  241. of conventional memory.  The same is true of DOS 5 if you have chosen not to 
  242. use DOS=HIGH.  QRAM's BUFFERS.COM program allows you to specify a single 
  243. BUFFER in CONFIG.SYS, and specify more buffers later, in AUTOEXEC.BAT.  The 
  244. benefit here is that these buffers, added by BUFFERS.COM after CONFIG.SYS has 
  245. run its course, may be loaded into the High RAM that QRAM creates, resulting 
  246. in substantial savings in conventional memory.
  247.  
  248. Unlike DOS 2 and 3, BUFFERS are "brittle" in DOS 5.  Only the last group of 
  249. BUFFERS loaded is used, with the preceding going to waste.
  250.  
  251. Due to the unusual structure of DOS buffers in DOS 4, BUFFERS.COM cannot be 
  252. used at all with DOS 4.
  253.  
  254. Users of large databases, or those in network environments, will appreciate 
  255. the QEMM FILES program, which allows you to add extra file handles in 
  256. AUTOEXEC.BAT or at the DOS prompt.  Again, FILES can be loaded into High RAM, 
  257. resulting in more conventional memory conservation. FCBS and LASTDRIVE can 
  258. also be handled in a similar way.
  259.  
  260.  
  261. MANIFEST
  262. ========
  263.  
  264. The award-winning Manifest program, included with every copy of QRAM, works on 
  265. any IBM-compatible PC.  Manifest will tell you how your system is configured 
  266. and how your applications are using memory, and will even give you hints on 
  267. how to improve your configuration.  Manifest's clear and comprehensive manual 
  268. will explain many things about memory, including the varying specifications 
  269. for memory use and how they work.
  270.  
  271.  
  272. How can I tell how useful QRAM will be on MY system?
  273. ====================================================
  274.  
  275. Many users have never had to consider the difference between exTENded and 
  276. exPANded memory, and are unlikely to have determined the number of mappable 
  277. pages that their EMS hardware and software can provide between 640K and 1024K.  
  278. To help with this process, Quarterdeck has provided a mini-analysis program 
  279. called QTEST.  QTEST will examine your system and will describe the extent of 
  280. the benefits that QRAM can provide.  QTEST is available free from the 
  281. Quarterdeck BBS (310-314-3227; 2400 and 9600 bps modem operation is 
  282. supported).  QTEST can also be found on Compuserve and on many BBSs; on some 
  283. BBSs, it may be found in compressed files along with the Quarterdeck White 
  284. Papers.
  285.  
  286. The Quarterdeck White Papers (of which this document is one example) comprise 
  287. technical notes, product information, and a QWHITE.COM, a DESQview-specific 
  288. file reader which can, when run under DESQview, search White Papers for 
  289. information, display, and print the technical notes for you.  You don't need 
  290. DESQview to get benefits from the White Papers. The notes therein can be read 
  291. with any text editor, word processor, or file reader that can display ASCII 
  292. text.  Many of these notes will help to explain WHY DESQview is so beneficial, 
  293. though!  The White Papers also contain files which explain various issues 
  294. related to QRAM, and to memory management in general; you may find these quite 
  295. helpful.
  296.  
  297.  
  298. Summary
  299. =======
  300.  
  301. In short, the QRAM package is valuable for anyone who wants to get the most 
  302. out of an 80286, 8086, or 8088 machine, especially those with EMS 4.0 exPANded 
  303. memory hardware or Chips & Technologies ShadowRAM installed.  If its system 
  304. requirements are fulfilled, you will find that QRAM can substantially increase 
  305. the amount of your precious conventional memory.
  306.  
  307.  
  308.   ************************************************************************
  309.   *This technical note may be copied and distributed freely as long as it*
  310.   *is distributed in its entirety and it is not distributed for profit.  *
  311.   *          Copyright (C) 1991 by Quarterdeck Office Systems            *
  312.   ************************ E N D   O F   F I L E *************************
  313.